<!document html5>
<html>
<head>

	<script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
	<script src="js/fb_data.js" type="text/javascript"></script>
	<script src="js/batches_job.js" type="text/javascript"></script>
	<script src="js/facebook.js" type="text/javascript"></script>	


</head>

<body>
	<div id="fb-root"></div>
	<script>
	  window.fbAsyncInit = function() {
	    // init the FB JS SDK
	    FB.init({
	      appId      : '638778706148876',                        // App ID from the app dashboard
	      channelUrl : 'www.oraculo-pesquisa.appspot.com/channel', // Channel file for x-domain comms
	      status     : true,                                 // Check Facebook Login status
	      xfbml      : true                                  // Look for social plugins on the page
	    });

	    facebookLogin(function(r){console.log(r);});
	  };

	  // Load the SDK asynchronously
	  (function(d, s, id){
	     var js, fjs = d.getElementsByTagName(s)[0];
	     if (d.getElementById(id)) {return;}
	     js = d.createElement(s); js.id = id;
	     js.src = "//connect.facebook.net/en_US/all.js";
	   	  fjs.parentNode.insertBefore(js, fjs);
	   }(document, 'script', 'facebook-jssdk'));
	</script>


	<button id="fb_influence_login" onclick="influence_login(function(){})">Influence Login</button>
	<button id="fb_likes" >Likes</button>

</body>
</html>